package com.liner.homework;


/**
 * @author 一条淡水鱼 ゆ
 * @Classname ExpandHomeWork
 * @Description
 * @Date 2023-04-01
 */
public class ExpandHomeWork {
 public static void main(String[] args) {
   String inter = "www.example.com?name=zhangSan&pwd=123123&stuId=10054&course=Math";
   String[] s1 = inter.split("\\?");
  String[] s2 = s1[1].split("&");
     for (String s : s2) {
         String[] split = s.split("=");
         System.out.println("参数:" + split[0] + ",参数值:" + split[1]);
     }

 }
}
